'use strict';

module.exports = function createUpdatedCollection(collectionA, objectB) {
  for(let i of collectionA)
  for(let j of objectB.value)
    {
      if(i.key==j)
      {
        i.count=i.count-parseInt((i.count/3));
      }
     

     
    }
  return collectionA;








  
}
